package com.lbt.vod.untils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;

public class ConstantVodUntils implements InitializingBean {
    //读取配置文件的内容
    @Value("${keysecret}")
    private String keysecret;
    @Value("${keyid}")
    private String keyId;

    //定义公开静态常量
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = keyId;
        ACCESS_KEY_SECRET = keysecret;
    }

}
